const cloud = require('wx-server-sdk')

exports.main = (obj1,obj2)=>{
    let val1 = obj1.difficulty
    let val2 = obj2.difficulty
    if(val1>val2){
      return -1
    }else if(val1<val2){
      return 1
    }else{
      return 0
    }
}